package com.b2b.service.impl.comparator;

import com.b2b.model.common.CategoryHot;

import java.util.Comparator;

public class CategoryHotComparator implements Comparator<CategoryHot> {

    @Override
    public int compare(CategoryHot o1, CategoryHot o2) {
        return o1.getSoldTimes() - o2.getSoldTimes();
    }
}
